const router = require('koa-router')(),
      essayController = require('../controller/essay'),
      loginCheck = require('../middlewares/logincheck'); 
router.prefix('/essay');      
router.post('/get_essay',essayController.getEssay);     
router.post('/create_essay',essayController.createEssay); 
router.post('/destroy_essay',essayController.destroyEssay);   
router.post('/update_essay',essayController.updateEssay);   
router.post('/change_status_essay',essayController.changeStatusEssay);  
router.post('/upload_image',essayController.uploadImage); 
router.get('/get_essay_count',essayController.getEssayCount);
router.get('/get_essay_all',essayController.getEssayAll);
router.post('/get_essay_up',essayController.getEssayUp)
module.exports = router; 